package com.bqtv.sport.ui.mine

import android.content.Context
import android.content.Intent
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.bqtv.sport.adapter.MyExchangeAdapter
import com.bqtv.sport.app.AppActivity
import com.bqtv.sport.commen.widget.LinearItemDecoration
import com.bqtv.sport.databinding.ActivityMyExchangeBinding
import com.bqtv.sport.databinding.ActivityPointsMallRulesBinding

class MyExchangeActivity : AppActivity<ActivityMyExchangeBinding>() {
    private lateinit var mAdapter: MyExchangeAdapter
    companion object {
        fun start(context: Context) {
            val intent = Intent(context, MyExchangeActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun getViewBinding() = ActivityMyExchangeBinding.inflate(layoutInflater)

    override fun initView() {
        binding.rcv.layoutManager= LinearLayoutManager(this)
        binding.rcv.addItemDecoration(LinearItemDecoration(getContext(), LinearItemDecoration.LineDrawMode.VERTICAL,0f,10f,10f))
        mAdapter= MyExchangeAdapter()
        binding.rcv.adapter= mAdapter
    }

    override fun initData() {
        mAdapter.submitList(arrayListOf("1", "2", "3", "4", "5", "6", "7"))


        initListener()
    }

    private fun initListener() {

    }

    override fun onClick(view: View) {
        super.onClick(view)
        when (view) {

        }
    }
}